#ifndef TRANSRAINBOW_H
#define TRANSRAINBOW_H
#include <QColor>

class TransRainbow {

public:
    enum Rainbow {
        red         = 0
        ,orange     = 1
        ,yellow     = 2
        ,green      = 3
        ,blue       = 4
        ,lightgreen = 5
        ,purple     = 6
    };

    static QColor getRainbow(int id) {
        switch (id) {
        case 0:
            return QColor(255,0,0);         break;
        case 1:
            return QColor(255, 165, 0);     break;
        case 2:
            return QColor(255, 255, 0);     break;
        case 3:
            return QColor(0, 128, 0);       break;
        case 4:
            return QColor(0, 0, 255);       break;
        case 5:
            return QColor(75, 0, 130);      break;
        case 6:
            return QColor(128, 0, 128);     break;
        default:
            return QColor(255, 255, 255);   break;
        }
    }
};

#endif // TRANSRAINBOW_H
